package com.ext.portlet.registration.service.impl;

import java.rmi.RemoteException;
import java.util.List;

import com.ext.portlet.registration.model.Others;
import com.ext.portlet.registration.service.OthersLocalServiceUtil;
import com.ext.portlet.registration.service.base.OthersLocalServiceBaseImpl;
import com.ext.portlet.registration.service.persistence.OthersUtil;
import com.liferay.portal.PortalException;
import com.liferay.portal.SystemException;


public class OthersLocalServiceImpl extends OthersLocalServiceBaseImpl {
	
	public List<Others> getAllOthers()
		throws PortalException, SystemException, RemoteException {
			return othersPersistence.findAll();		
	}
	
	public List<Others> getByStatus(Integer status) throws SystemException{
		return OthersUtil.findByStatus(status);
	}
	
	public Others EmailValidation(String emailAddress) throws SystemException{
		return othersPersistence.fetchByEmailAddress(emailAddress);
	}
	
	public Others getByLoginId(String loginId) throws SystemException {
		return OthersUtil.fetchByLoginId(loginId);
	}
}
